package com.bawan;

/**
 * Desc:  ${TODO}
 * Author: zhengcongchun
 * CreateTime: 2014-02-28 10:40
 * LastModifyTime: 2014-02-28 10:40
 * FinalModifier: zhengcongchun
 * Version: 1.0
 */
public class MethodOverrideVSOverload {

    public boolean equals(MethodOverrideVSOverload methodOverrideVSOverload) {
        System.out.println("MethodOverrideVSOverload equals method reached");
        return true;
    }

    public static void main(String[] args) {
        Object obj1 = new MethodOverrideVSOverload();
        Object obj2 = new MethodOverrideVSOverload();

        MethodOverrideVSOverload obj3 = new MethodOverrideVSOverload();
        MethodOverrideVSOverload obj4 = new MethodOverrideVSOverload();

        if (obj1.equals(obj2)) {
            System.out.println("objects obj1 and obj3 are equal");
        }

        if (obj3.equals(obj4)) {
            System.out.println("objects obj3 and obj4 are equal");
        }
    }
}
